/* 
 *{{ ApiDict.ApiInfo.AppName }}
 *{{ ApiDict.ApiInfo.Description }}
 *{{ ApiDict.ApiInfo.Version }}
 */

var api = {};

{% for row in ApiDict.PluginList %}
/*
 *{{row.PluginName}}
 *{{row.PluginDescription}}
 */
api.{{row.PluginName}} = {};
{% for module_name in row.Modules %}
api.{{row.PluginName}}.{{row.Modules[module_name].ModuleName}} = {};
{% for func in row.Modules[module_name].FuncList %}
/*
 *{{func.FuncDescription}}
 */
api.{{row.PluginName}}.{{row.Modules[module_name].ModuleName}}.{{func.FuncName}} = function (inParameter,success_callback,error_callback) {
    $.ajax({
        url: "{{func.FuncUrl}}",
        type: "POST",
        async: true,
        contentType: "application/json",
        dataType: "json",
        data: JSON.stringify(inParameter),
        success: success_callback,
        error: error_callback,
    });
}
{% endfor %}
{% endfor %}
{% endfor %}